/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.backup.user;


import java.sql.*;




public class Connect {

    Connection connect;

    public Connect()
    {

        try
        {
        Class.forName("com.mysql.jdbc.Driver");

        connect=DriverManager.getConnection("jdbc:mysql://localhost/s3_backup","root","12345");

        System.out.println("connection is happen");
        }//end of the try

        catch(ClassNotFoundException ex)
        {
        ex.printStackTrace();
        }//end of the catch block

        catch(SQLException ex)
        {
        ex.printStackTrace();
        }
    }//end of the constructor

    public static void main(String []args)
    {


        Connect c=new Connect();
    }//end main

}
